<html>

<div id="chartContainer">
    <script src="./lib/d3.v4.3.0.js"></script>
    <script src="./dist/dimple.v2.3.0.js"></script>
    <script type="text/javascript">
        var svg = dimple.newSvg("#chartContainer", 590, 400);
        d3.tsv("./data/example_data.tsv", function (data) {
            var myChart = new dimple.chart(svg, data);
            myChart.setBounds(95, 25, 475, 335)
            myChart.addCategoryAxis("x", "Price Tier");
            myChart.addMeasureAxis("y", "Unit Sales");
            myChart.addMeasureAxis("p", "Unit Sales");
            var pies = myChart.addSeries("Channel", dimple.plot.pie);
            pies.radius = 25;
            pies.innerRadius = "50%";
            myChart.defaultColors = [new dimple.color("black"), new dimple.color("rgba(0,0,0,0.2)")];
            myChart.addLegend(240, 10, 330, 20, "right");
            myChart.draw();
        });
    </script>
</div>

</html>